package com.lwlk.zdk.service.Log;

import com.lwlk.zdk.mapper.pw.pwLogMapper;
import com.lwlk.zdk.model.Encapsulation.EncapsulationOperationType;
import com.lwlk.zdk.model.Logger.SysLog;
import com.lwlk.zdk.model.Logger.pwLog;
import com.sun.javafx.collections.MappingChange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class SysLogServiceImpl implements SysLogService {

    @Autowired
    pwLogMapper pwLogMapper;



    @Override
    public void save(pwLog pwlog) {
     pwLogMapper.insertSelective(pwlog);
    }



    @Override
    public List<Map<String,Object>> selectCondition(String userName, String operation, String startTime, String endTime) {
        return pwLogMapper.selectCondition(userName,operation,startTime,endTime);
    }

    @Override
    public List<Map<String, Object>> selectSwop() {
        return pwLogMapper.selectSwop();
    }

    @Override
    public List<EncapsulationOperationType> selectOperationShow() {
        return pwLogMapper.selectOperationShow();
    }

    @Override
    public List<Map<String, Object>> selectTerm(String operation, String startTime, String endTime,String userName) {
        return pwLogMapper.selectTerm(operation,startTime,endTime,userName);
    }
}
